<?php

/**
 * AbetProjectList form base class.
 *
 * @method AbetProjectList getObject() Returns the current form's model object
 *
 * @package    sfproject
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseAbetProjectListForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'abet_project_id' => new sfWidgetFormPropelChoice(array('model' => 'AbetProject', 'add_empty' => true)),
      'abet_team_id'    => new sfWidgetFormPropelChoice(array('model' => 'AbetTeam', 'add_empty' => true)),
      'num_proj_list'   => new sfWidgetFormInputText(),
      'faculty_ranking' => new sfWidgetFormInputText(),
      'list_rank'       => new sfWidgetFormInputText(),
      'created_at'      => new sfWidgetFormDateTime(),
      'updated_at'      => new sfWidgetFormDateTime(),
      'id'              => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'abet_project_id' => new sfValidatorPropelChoice(array('model' => 'AbetProject', 'column' => 'id', 'required' => false)),
      'abet_team_id'    => new sfValidatorPropelChoice(array('model' => 'AbetTeam', 'column' => 'id', 'required' => false)),
      'num_proj_list'   => new sfValidatorString(array('max_length' => 20)),
      'faculty_ranking' => new sfValidatorInteger(array('min' => -2147483648, 'max' => 2147483647, 'required' => false)),
      'list_rank'       => new sfValidatorInteger(array('min' => -2147483648, 'max' => 2147483647)),
      'created_at'      => new sfValidatorDateTime(array('required' => false)),
      'updated_at'      => new sfValidatorDateTime(array('required' => false)),
      'id'              => new sfValidatorChoice(array('choices' => array($this->getObject()->getId()), 'empty_value' => $this->getObject()->getId(), 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('abet_project_list[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'AbetProjectList';
  }


}
